package com.manage.platform.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Accessors(chain = true)
@Data
public class OrganizeTreeVo implements Serializable {

    @Schema(description = "组织ID")
    private Long id;

    @Schema(description = "上级组织ID(0表示顶级组织)")
    private Long parentId;

    @Schema(description = "组织名称")
    private String name;

    @Schema(description = "下级组织列表")
    List<OrganizeTreeVo> children;

}